//
//  WalletsViewController.h
//  Wallets Manager
//
//  Created by Nguyen Chi Cong on 9/13/12.
//  Copyright (c) 2012 BKHN. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SNPopupView.h"
#import "SNPopupView+UsingPrivateMethod.h"
#import "AddWalletViewController.h"
#import "Global.h"
#import "folyAppDelegate.h"
#import "GeneralManagerViewController.h"
#import "ReportViewController.h"
#import "PlanViewController.h"
#import "ToolsViewController.h"
#import "SettingsViewController.h"
#import "BBAlertView.h"
#import "ViewWalletController.h"
#import "Currency.h"
@class WalletsViewController;
@protocol WalletsDelegate <NSObject>

-(void)walletDidSelected:(id)wallet;

@end

@interface WalletsViewController : UIViewController<UITableViewDelegate, UITableViewDataSource , SNPopupViewModalDelegate,UITabBarDelegate,UIAlertViewDelegate>
{
    int currentMessageIndex;
    SNPopupView		*popup;
    Wallet *currentWallet;
    NSIndexPath *myIndexPath;
    BBAlertView *alert;
    UITextField *tbfPassword;
}

@property (strong, nonatomic) IBOutlet UITableView *table;

@property (strong, nonatomic) IBOutlet UIBarButtonItem *btnEdit;

@property (strong, nonatomic) NSMutableArray *walletsList;
@property (weak, nonatomic) IBOutlet UIView *manageWalletView;
//@property (strong, nonatomic) id <WalletsDelegate> delegate;
@property (strong, nonatomic) IBOutlet UIView *popupView;
@property (strong, nonatomic) IBOutlet UIView *addWalletView;
@property (weak, nonatomic) IBOutlet UIButton *editButton;
@property (weak, nonatomic) IBOutlet UIButton *deleteButton;


-(IBAction)editChange:(id)sender;
-(IBAction)addWallet:(id)sender;
- (void)didDismissModal:(SNPopupView*)popupview;
- (void)didTouchPopupView:(SNPopupView*)sender;
- (IBAction)editButtonClicked:(id)sender;
- (IBAction)deleteButtonClicked:(id)sender;
- (IBAction)viewButtonClicked:(id)sender;


@end
